package com.photographysharing.exception;


/**
 * 自定义异常(服务器的)
 */

public class ServiceException extends RuntimeException {
    private int code;

    public ServiceException(int code) {
        super("服务器异常!");
        this.code = code;
    }

    public ServiceException(int code,String msg) {
        super(msg);
        this.code = code;
    }
    public ServiceException(String msg){
        super(msg);
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
